import java.util.Scanner;

public class Exercise2 {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int x = scan.nextInt();
        boolean f = isPrimeNumber(x);
        if (f) {
            System.out.println(x +" is prime number ");
        }
        else {
            System.out.println(x +" is not prime number");
        }

    }

    public static boolean isPrimeNumber (int a) {
        for (int i = 2; i < a; i++) {
            if (a % i == 0) return false;
        }
        return true;
    }
}
